<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // var printName = function () {
    //     console.log('Matt');
    //     printName = function () {
    //         console.log('James');
    //     }
    // }
    // var copy = printName;
    // printName();
    // copy();
    var x = 0;
    switch (++x) {
        case 0: ++x;
        case 1: ++x;
        case 2: ++x;
    }
    console.log(x);
</script>
</body>
</html>